package billeterie;
/**
 * 
 * @author samir
 */
public class Voyage {

    public int id_voyage;
    public String date_voyage;
    public Gare gare_arrive;
    public Gare gare_depart;
    public int id_billet;
    public int id_train;

    public Voyage(int id_voyage, String date_voyage, Gare gare_arrive, Gare gare_depart, int id_billet, int id_train) {
        this.id_voyage = id_voyage;
        this.date_voyage = date_voyage;
        this.gare_arrive = gare_arrive;
        this.gare_depart = gare_depart;
        this.id_billet = id_billet;
        this.id_train = id_train;
    }

    public int getId_train() {
        return id_train;
    }

    public void setId_train(int id_train) {
        this.id_train = id_train;
    }

    public int getId_billet() {
        return id_billet;
    }

    public void setId_billet(int id_billet) {
        this.id_billet = id_billet;
    }

    public int getId_voyage() {
        return id_voyage;
    }

    public void setId_voyage(int id_voyage) {
        this.id_voyage = id_voyage;
    }

    public String getDate_voyage() {
        return date_voyage;
    }

    public void setDate_voyage(String date_voyage) {
        this.date_voyage = date_voyage;
    }

    public Gare getGare_arrive() {
        return gare_arrive;
    }

    public void setGare_arrive(Gare gare_arrive) {
        this.gare_arrive = gare_arrive;
    }

    public Gare getGare_depart() {
        return gare_depart;
    }

    public void setGare_depart(Gare gare_depart) {
        this.gare_depart = gare_depart;
    }

    @Override
    public String toString() {
        return "Voyage{" + "date_voyage=" + date_voyage + ", gare_arrive=" + gare_arrive + ", gare_depart=" + gare_depart + '}';
    }
}
